/*
 * XML Type:  XTextArea
 * Namespace: http://www.seedwill.com/xul/widget/
 * Java type: com.seedwill.xul.widget.XTextArea
 *
 * Automatically generated - do not modify.
 */
package com.seedwill.xul.widget.impl;
/**
 * An XML XTextArea(@http://www.seedwill.com/xul/widget/).
 *
 * This is a complex type.
 */
public class XTextAreaImpl extends com.seedwill.xul.widget.impl.XTextBoxImpl implements com.seedwill.xul.widget.XTextArea
{
    private static final long serialVersionUID = 1L;
    
    public XTextAreaImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName WRAP$0 = 
        new javax.xml.namespace.QName("", "wrap");
    private static final javax.xml.namespace.QName LINELIMIT$2 = 
        new javax.xml.namespace.QName("", "lineLimit");
    
    
    /**
     * Gets the "wrap" attribute
     */
    public boolean getWrap()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(WRAP$0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(WRAP$0);
            }
            if (target == null)
            {
                return false;
            }
            return target.getBooleanValue();
        }
    }
    
    /**
     * Gets (as xml) the "wrap" attribute
     */
    public org.apache.xmlbeans.XmlBoolean xgetWrap()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlBoolean target = null;
            target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(WRAP$0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlBoolean)get_default_attribute_value(WRAP$0);
            }
            return target;
        }
    }
    
    /**
     * True if has "wrap" attribute
     */
    public boolean isSetWrap()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().find_attribute_user(WRAP$0) != null;
        }
    }
    
    /**
     * Sets the "wrap" attribute
     */
    public void setWrap(boolean wrap)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(WRAP$0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(WRAP$0);
            }
            target.setBooleanValue(wrap);
        }
    }
    
    /**
     * Sets (as xml) the "wrap" attribute
     */
    public void xsetWrap(org.apache.xmlbeans.XmlBoolean wrap)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlBoolean target = null;
            target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(WRAP$0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlBoolean)get_store().add_attribute_user(WRAP$0);
            }
            target.set(wrap);
        }
    }
    
    /**
     * Unsets the "wrap" attribute
     */
    public void unsetWrap()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_attribute(WRAP$0);
        }
    }
    
    /**
     * Gets the "lineLimit" attribute
     */
    public int getLineLimit()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(LINELIMIT$2);
            if (target == null)
            {
                return 0;
            }
            return target.getIntValue();
        }
    }
    
    /**
     * Gets (as xml) the "lineLimit" attribute
     */
    public org.apache.xmlbeans.XmlInt xgetLineLimit()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlInt target = null;
            target = (org.apache.xmlbeans.XmlInt)get_store().find_attribute_user(LINELIMIT$2);
            return target;
        }
    }
    
    /**
     * True if has "lineLimit" attribute
     */
    public boolean isSetLineLimit()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().find_attribute_user(LINELIMIT$2) != null;
        }
    }
    
    /**
     * Sets the "lineLimit" attribute
     */
    public void setLineLimit(int lineLimit)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(LINELIMIT$2);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(LINELIMIT$2);
            }
            target.setIntValue(lineLimit);
        }
    }
    
    /**
     * Sets (as xml) the "lineLimit" attribute
     */
    public void xsetLineLimit(org.apache.xmlbeans.XmlInt lineLimit)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlInt target = null;
            target = (org.apache.xmlbeans.XmlInt)get_store().find_attribute_user(LINELIMIT$2);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlInt)get_store().add_attribute_user(LINELIMIT$2);
            }
            target.set(lineLimit);
        }
    }
    
    /**
     * Unsets the "lineLimit" attribute
     */
    public void unsetLineLimit()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_attribute(LINELIMIT$2);
        }
    }
}
